<template>
	<div>
		<button @click="a = !a">显示/隐藏</button>
		<transition
			enter-active-class="animate__backInLeft"
			leave-active-class="animate__hinge"
			appear
		>
			<h1 class="animate__animated" v-if="a">你好</h1>
		</transition>
	</div>
</template>

<script>
	import 'animate.css';

	export default {
		name:'App',
		data() {
			return {
				a:true
			}
		},
	}
</script>

<style>
	h1{
		background-color: orange;
	}
</style>